None
Is this nice?
import pandas as pd
import cufflinks as cf
import numpy as np
import yfinance as yf
display("text/html", "<style>.container { width:100% !important; }</style>")
cf.set_config_file(theme='pearl', world_readable=False)
cf.go_offline()
single_stock = yf.download('msft', start="2020-05-27", end="2021-05-27")
single_stock.head()
single_stock['Adj Close'].iplot(title='MSFT Adjusted Close', colors=['red'])
This is an example of an article writen on jupyter notebooks
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
from plotly.graph_objs import Scatter, Figure, Layout
import plotly
import plotly.graph_objs as go
init_notebook_mode(connected=False)
import json
import numpy as np
import pandas as pd
N = 1000
random_x = np.random.randn(N)
random_y = np.random.randn(N)
# Create a trace
trace = go.Scatter(
x = random_x,
y = random_y,
mode = 'markers'
)
data = [trace]
layout = go.Layout(
autosize=False,
width=500,
height=500,
margin=go.Margin(
l=20,
r=50,
b=100,
t=100,
pad=4
)
)
fig = go.Figure(data=data, layout=layout)
# Plot and embed in ipython notebook!
iplot(fig,show_link=False)
# matplotlib graph
import matplotlib.pyplot as plt
# change graph size
plt.figure(figsize=(20,10))
plt.plot(random_x, random_y)
plt.show()